package com.example.qxfw.hbqx.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.qx.GroundElements;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;

@Mapper
@DS("qx")
public interface GroundElementsMapper extends BaseMapper<GroundElements> {
    /**
     * 根据观测时间查询地面要素温度，站点名称和id
     * @param observtime
     * @return
     */
    @Select("SELECT drybulbtemp, stationiD, stationname " +
            "FROM ground_elements " +
            "WHERE observtime = #{observtime} ")
    List<GroundElements> selectByObservtimeOfGroundElements(Date observtime);
}
